package com.globopt.global.algorithm;
/**
 * Method abstract class to the direfferents method.
 * 
 * @author Richard Gasztany 2012.12.05.
 * 
 */
public abstract class Method {
	protected Global global;
	protected int nvars;
	protected int functionEvaluation;

	public abstract Point loc(Point point);

	public void setGlobal(Global global) {
		this.global = global;
		this.nvars = global.getFun().nvars;
		this.functionEvaluation = 0;
	}

	/**
	 * @return the functionEvaluation
	 */
	public int getFunctionEvaluation() {
		return functionEvaluation;
	}

}
